package cn.demoncat.test.neo.node;

import org.springframework.data.neo4j.annotation.QueryResult;

/**
 * 查询结果映射
 *
 * 1、注解@QueryResult
 * 2、放在node包下
 * 3、映射查询结果的字段，作为Repository的返回值
 *
 * @author 延晓磊
 * @since 2021年07月10日
 */
@QueryResult
public class RUserResult {

    private String name;
    // 节点A
    private Long userId;
    // 节点B
    private Long foodId;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getFoodId() {
        return foodId;
    }

    public void setFoodId(Long foodId) {
        this.foodId = foodId;
    }
}
